<%--
  User: aistomin
  Date: 8/15/11
  Time: 11:13 PM
--%>

<%@ page language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<%@ taglib uri="http://www.hippoecm.org/jsp/hst/core" prefix='hst'%>
<ul>
    <c:forEach var="item" items="${menu.siteMenuItems}">
         <li>
        <c:choose >
              <c:when test="${item.selected}">
                 <a href="" class="current">* <c:out value="${item.name}"/></a>
              </c:when>
              <c:otherwise>
                  <hst:link var="link" link="${item.hstLink}"/>
                  <c:if test="${empty link}">
                    <c:set var="link" value="${item.externalLink}"/>
              </c:if>
                  <a href="${link}">
                      * <c:out value="${item.name}"/>
                  </a>
              </c:otherwise>
          </c:choose>
         </li>



    </c:forEach>
</ul>